Fix the build
authorMatthias Clasen <mclasen@redhat.com>
Mon, 10 Oct 2016 18:37:09 +0000 (14:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 10 Oct 2016 18:37:09 +0000 (14:37 -0400)
gtk/inspector/general.c

index f7f82235ca299e02c0c8f54b4c454db5c6f0d9d5..35231b5b39ce0132d2abbef6b46a200763b4a846 100644 (file)
@@ -216,7 +216,7 @@ append_egl_extension_row (GtkInspectorGeneral *gen,
 }
 
 static EGLDisplay
-wayland_get_display (GdkWaylandDisplay *display_wayland)
+wayland_get_display (struct wl_display *wl_display)
 {
   EGLDisplay dpy = NULL;
 
@@ -227,7 +227,7 @@ wayland_get_display (GdkWaylandDisplay *display_wayland)
 
       if (getPlatformDisplay)
         dpy = getPlatformDisplay (EGL_PLATFORM_WAYLAND_EXT,
-                                  display_wayland->wl_display,
+                                  wl_display,
                                   NULL);
       if (dpy)
         return dpy;
@@ -240,13 +240,13 @@ wayland_get_display (GdkWaylandDisplay *display_wayland)
 
       if (getPlatformDisplay)
         dpy = getPlatformDisplay (EGL_PLATFORM_WAYLAND_EXT,
-                                  display_wayland->wl_display,
+                                  wl_display,
                                   NULL);
       if (dpy)
         return dpy;
     }
 
-  return eglGetDisplay ((EGLNativeDisplayType) display_wayland->wl_display);
+  return eglGetDisplay ((EGLNativeDisplayType)wl_display);
 }
 #endif